/**
 * 
 */
package cn.ivicar.app.controller.vehicle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.com.carsmart.exception.BadRequestException;
import cn.com.carsmart.exception.CarsmartException;
import net.sf.json.JSONObject;

/**
 * 获取车辆位置
 * @author liurunbin 2017年5月18日 cn.ivicar.app.controller.vehicle
 */
public class PositionController {

	private static transient final Logger LOGGER = LoggerFactory.getLogger(PositionController.class);

	public JSONObject getVehicleLocation(Long vehicleId, Long customerId) throws CarsmartException {
		// TODO 获取车辆位置待实现
		if (vehicleId == null) {
			throw new BadRequestException("400", "请求参数不能为空!");
		}
		JSONObject result = new JSONObject();
		result.put("lng", "116.37041");
		result.put("lat", "39.967163");
		result.put("speed", "0");
		result.put("time", "1490267251000");
		result.put("address", "");
		result.put("locateType", "gps");
		result.put("radii", "");
		result.put("direction", "0");
		result.put("oriLat ", "");
		result.put("oriLng", "");
		return result;
	}

}
